<template>
	<view class="jnpf-wrap jnpf-wrap-workflow">
		<u-form :model="dataForm" ref="dataForm" :errorType="['toast']" label-position="left" label-width="180"
			label-align="left">

			<u-form-item label="客户编号">
				<u-input v-model="dataForm.ua042" placeholder="客户编号" disabled></u-input>
			</u-form-item>
			<u-form-item label="客户名称" type="textarea" v-if="judgeShow('ua002')">
				<u-input v-model="dataForm.ua002" placeholder="客户名称" disabled></u-input>
			</u-form-item>
			<u-form-item label="评审单号" type="textarea" v-if="judgeShow('ua041')">
				<u-input v-model="dataForm.ua041" placeholder="评审单号" disabled></u-input>
			</u-form-item>
			<u-form-item label="客户订单号" type="textarea" v-if="judgeShow('ua003')">
				<u-input v-model="dataForm.ua003" placeholder="客户订单号" disabled></u-input>
			</u-form-item>
			<u-form-item label="订单数量" type="textarea" v-if="judgeShow('ua004')">
				<u-input v-model="dataForm.ua004" placeholder="订单数量" :disabled="judgeWrite('ua004')"></u-input>
			</u-form-item>
			<u-form-item label="已下订单数量" type="textarea" v-if="judgeShow('ua043')">
				<u-input v-model="dataForm.ua043" placeholder="已下订单数量" :disabled="judgeWrite('ua043')"></u-input>
			</u-form-item>
			<u-form-item label="订单交期" type="textarea" v-if="judgeShow('ua005')">
				<u-input v-model="dataForm.ua005" placeholder="订单交期" :disabled="judgeWrite('ua005')"></u-input>
			</u-form-item>
			<u-form-item label="品号" type="textarea" v-if="judgeShow('ua007')">
				<u-input v-model="dataForm.ua007" placeholder="品号" :disabled="judgeWrite('ua007')"></u-input>
			</u-form-item>
			<u-form-item label="品名" type="textarea" v-if="judgeShow('ua039')">
				<u-input v-model="dataForm.ua039" placeholder="品名" :disabled="judgeWrite('ua039')"></u-input>
			</u-form-item>
			<u-form-item label="规格" type="textarea" v-if="judgeShow('ua040')">
				<u-input v-model="dataForm.ua040" placeholder="规格" :disabled="judgeWrite('ua040')"></u-input>
			</u-form-item>
			<u-form-item label="客户品号" type="textarea" v-if="judgeShow('ua006')">
				<u-input v-model="dataForm.ua006" placeholder="客户品号" :disabled="judgeWrite('ua006')"></u-input>
			</u-form-item>
			<u-form-item label="客户品名" type="textarea" v-if="judgeShow('ua037')">
				<u-input v-model="dataForm.ua037" placeholder="客户品名" :disabled="judgeWrite('ua037')"></u-input>
			</u-form-item>
			<u-form-item label="客户规格" type="textarea" v-if="judgeShow('ua038')">
				<u-input v-model="dataForm.ua038" placeholder="客户规格" :disabled="judgeWrite('ua038')"></u-input>
			</u-form-item>

			<u-form-item label="信息来源" type="textarea" v-if="judgeShow('ua008')">
				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in dataForm.ua008" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="附件" type="textarea" v-if="judgeShow('ua081')">
				<jnpf-file v-model="dataForm.ua081" :disabled="judgeWrite('ua081')" />
			</u-form-item>
			<u-divider color="#fa3534">主板</u-divider>
			<u-form-item label="显示屏类别" type="textarea" v-if="judgeShow('ua012')">
				<u-input v-model="dataForm.ua012" placeholder="显示屏类别" disabled></u-input>
			</u-form-item>
			<u-form-item label="灯光颜色" type="textarea" v-if="judgeShow('ua045')">
				{{ua045}}
				<u-input v-model="dataForm.ua045" placeholder="灯光颜色" disabled></u-input>
			</u-form-item>
			<u-form-item label="点阵屏" type="textarea" v-if="showPointmatrix">
				{{ua046}}
				<u-input v-model="dataForm.ua046" placeholder="点阵屏" disabled></u-input>
			</u-form-item>
			<u-form-item label="矩阵屏(常规屏)" type="textarea" v-if="showmatrix">
				{{ua047}}
				<u-input v-model="dataForm.ua047" placeholder="矩阵屏(常规屏)" disabled></u-input>
			</u-form-item>
			<u-form-item label="屏显快充标志" type="textarea" v-if="showFastcharging">
				{{ua048}}
				<u-input v-model="dataForm.ua048" placeholder="屏显快充标志" disabled></u-input>
			</u-form-item>
			<u-form-item label="屏显灯光颜色" type="textarea" v-if="judgeShow('ua049')">
				{{ua049}}
				<u-input v-model="dataForm.ua049" placeholder="屏显灯光颜色" disabled></u-input>
			</u-form-item>
			<u-form-item label="主板相关认证" type="textarea" v-if="judgeShow('ua050')">
				{{ua050}}
				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in dataForm.ua050" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-divider color="#fa3534">输入</u-divider>
			<u-form-item label="TYPE-C" type="textarea" v-if="judgeShow('ua082')">
				{{ua082}}

			</u-form-item>
			<u-form-item label="Lightning" type="textarea" v-if="judgeShow('ua083')">
				{{ua083}}

			</u-form-item>
			<u-form-item label="Micro" type="textarea" v-if="judgeShow('ua084')">
				{{ua084}}

			</u-form-item>
			<u-form-item label="USB1" type="textarea" v-if="judgeShow('ua085')">
				{{ua085}}

			</u-form-item>
			<u-form-item label="USB2" type="textarea" v-if="judgeShow('ua086')">
				{{ua086}}

			</u-form-item>
			<u-form-item label="USB3" type="textarea" v-if="judgeShow('ua087')">
				{{ua087}}

			</u-form-item>
			<u-divider color="#fa3534">主板胶口颜色</u-divider>
			<u-form-item label="TYPE-C1" type="textarea" v-if="judgeShow('ua094')">
				<u-input v-model="dataForm.ua094" placeholder="TYPE-C1" disabled></u-input>
			</u-form-item>
			<u-form-item label="TYPE-C2" type="textarea" v-if="judgeShow('ua095')">
				{{ua095}}

			</u-form-item>
			<u-form-item label="Lightning" type="textarea" v-if="judgeShow('ua096')">
				{{ua096}}

			</u-form-item>
			<u-form-item label="Micro" type="textarea" v-if="judgeShow('ua097')">
				{{ua097}}

			</u-form-item>
			<u-form-item label="USB1" type="textarea" v-if="judgeShow('ua098')">
				{{ua098}}

			</u-form-item>
			<u-form-item label="USB2" type="textarea" v-if="judgeShow('ua099')">
				{{ua099}}

			</u-form-item>
			<u-form-item label="底板颜色" type="textarea" v-if="judgeShow('ua053')">
				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua053" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="方案" type="textarea" v-if="judgeShow('ua054')">
				<u-input v-model="dataForm.ua054" placeholder="方案" :disabled="judgeWrite('ua054')"></u-input>
			</u-form-item>
			<u-divider color="#fa3534">线材性能参数规格</u-divider>
			<u-form-item label="材质" type="textarea" v-if="judgeShow('ua057')">
				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua057" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="颜色" type="textarea" v-if="judgeShow('ua058')">
				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua058" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="尺寸" type="textarea" v-if="judgeShow('ua059')">

				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua059" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="类别要求" type="textarea" v-if="judgeShow('ua060')">

				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua060" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="性能" type="textarea" v-if="judgeShow('ua061')">

				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua061" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-divider color="#fa3534">连接充电线</u-divider>
			<u-form-item label="线材质要求(TPE/PE)" type="textarea" v-if="judgeShow('ua062')">
				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua062" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="ROHS认证" type="textarea" v-if="showROHS">

				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua063" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="ROHS防火等级" type="textarea" v-if="showFireproof">

				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua064" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="颜色" type="textarea" v-if="judgeShow('ua065')">
				<u-input v-model="dataForm.ua065" placeholder="颜色" disabled></u-input>
			</u-form-item>
			<u-form-item label="ROHS类别要求" type="textarea" v-if="judgeShow('ua066')">
				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua066" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="USB" type="textarea" v-if="showUSB">

				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua068" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="内舌颜色" type="textarea" v-if="showColor">

				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua069" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="MICRO" type="textarea" v-if="showMICRO">

				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua070" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="内舌颜色" type="textarea" v-if="showMICROColor">

				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua071" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="6PINS" type="textarea" v-if="showPINS">

				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua072" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="7PINS" type="textarea" v-if="showPINS">

				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua073" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="8PINS" type="textarea" v-if="showPINS">

				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua074" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="内舌颜色" type="textarea" v-if="showPINScolor">

				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua075" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="TYPE-C" type="textarea" v-if="showTYPEC">

				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua076" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="内舌颜色" type="textarea" v-if="showTYPEColor">
				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua077" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="线性能" type="textarea" v-if="judgeShow('ua078')">
				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua078" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-divider color="#fa3534">电芯</u-divider>
			<u-form-item label="品牌" type="textarea" v-if="judgeShow('ua079')">
				<view style="display: flex; flex-wrap: wrap;">
					<u-tag v-for="(item, index) in ua079" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" />
				</view>
			</u-form-item>
			<u-form-item label="电芯品牌" type="textarea" v-if="judgeShow('ua019')">
				{{ua019}}
				<!-- <u-input v-model="dataForm.ua019" placeholder="电芯品牌" disabled></u-input> -->
			</u-form-item>
			<u-form-item label="电芯规格" type="textarea" v-if="judgeShow('ua020')">
				{{ua020}}
				<!-- <u-input v-model="dataForm.ua020" placeholder="电芯规格" disabled></u-input> -->
			</u-form-item>
			<u-form-item label="电芯颜色" type="textarea" v-if="judgeShow('ua021')">
				{{ua021}}
				<!-- <u-input v-model="dataForm.ua021" placeholder="电芯颜色" disabled></u-input> -->
			</u-form-item>
			<u-form-item label="电芯喷码" type="textarea" v-if="judgeShow('ua022')">
				{{ua022}}
				<!-- <u-input v-model="dataForm.ua022" placeholder="电芯喷码" disabled></u-input> -->
			</u-form-item>
			<u-form-item label="电芯型号" type="textarea" v-if="judgeShow('ua018')">
				<u-input v-model="dataForm.ua018" placeholder="电芯型号" disabled></u-input>
			</u-form-item>
			<u-divider color="#fa3534">外壳要求</u-divider>
			<u-form-item label="材质" type="textarea" v-if="judgeShow('ua013')">
				<view style="display: flex; flex-wrap: wrap;">
					{{ua013}}
					<!-- <u-tag v-for="(item, index) in dataForm.ua013" :key="index" :text="item" type="success"
						style="margin: 5px; white-space: normal; overflow-wrap: break-word;" /> -->
				</view>
			</u-form-item>
			<u-form-item label="型号" type="textarea" v-if="judgeShow('ua014')">
				{{ua014}}
				<!-- <u-input v-model="dataForm.ua014" placeholder="型号" disabled></u-input> -->
			</u-form-item>
			<u-form-item label="带线/不带线" type="textarea" v-if="judgeShow('ua015')">
				{{ua015}}
				<!-- <u-input v-model="dataForm.ua015" placeholder="带线/不带线" disabled></u-input> -->
			</u-form-item>
			<u-form-item label="公模/私模" type="textarea" v-if="judgeShow('ua016')">
				{{ua016}}
				<!-- <u-input v-model="dataForm.ua016" placeholder="公模/私模" disabled></u-input> -->
			</u-form-item>
			<u-divider color="#fa3534">各部门评审意见</u-divider>
			<u-form-item label="工程部门意见" type="textarea" v-if="judgeShow('ua029')">
				<u-input v-model="dataForm.ua029" placeholder="工程部门意见" :disabled="judgeWrite('ua029')"></u-input>
			</u-form-item>
			<u-form-item label="计划部门意见" type="textarea" v-if="judgeShow('ua030')">
				<u-input v-model="dataForm.ua030" placeholder="计划部门意见" :disabled="judgeWrite('ua030')"></u-input>
			</u-form-item>
			<u-form-item label="品管中心意见" type="textarea" v-if="judgeShow('ua031')">
				<u-input v-model="dataForm.ua031" placeholder="品管中心意见" :disabled="judgeWrite('ua031')"></u-input>
			</u-form-item>
			<u-form-item label="评审结论" type="textarea" v-if="judgeShow('ua032')">
				<u-input v-model="dataForm.ua032" placeholder="评审结论" :disabled="judgeWrite('ua032')"></u-input>
			</u-form-item>
			<u-form-item label="日期" type="textarea" v-if="judgeShow('ua034')">
				<u-input v-model="dataForm.ua034" placeholder="日期" :disabled="judgeWrite('ua034')"></u-input>

			</u-form-item>
		</u-form>
	</view>
</template>
<script>
	import {
		getCopua
	} from "@/api/workFlow/flowEngine";
	import {
		getUserAll,
		Interface,
		getDictionaryDataSelector
	} from "@/api/common";
	import comMixin from "../mixin";
	import {
		getGoodsList,
		getCustomerList,
		Info,
		Create,
		Update,
	} from "@/api/apply/order";
	export default {
		name: "crmOrder",
		mixins: [comMixin],

		data() {
			return {
				showROHS: false,
				showFireproof: false,
				showUSB: false,
				showColor: false,
				showMICRO: false,
				showMICROColor: false,
				showPINS: false,
				showPINScolor: false,
				showTYPEC: false,
				showTYPEColor: false,
				showPointmatrix: false,
				showmatrix: false,
				showFastcharging: false,
				childrenShow: false,
				childrenName: "",
				dataForm: {},
				tableField133: [],
				id: "",
				wx022Name: [],
				wx023Name: [],
				wx018Name: [],
				wx020Name: [],
				nameList: [],
				xx032List: [],
				tn003List: [],
				childrenList: [],
				dictionaryIds: {
					ua019: "558146278089861317",
					ua020: "558146422814320837",
					ua021: "558146545451575493",
					ua022: "558146654377650373",
					ua012: "539972351400493893",
					ua013: "546609637391101573",
					ua014: "539972643550544709",
					ua015: "546607696162352773",
					ua016: "546610256889802373",
					ua045: "542605870618616773",
					ua046: "542605870618616773",
					ua047: "543600129437860229",
					ua048: "543609631939756485",
					ua049: "542605870618616773",
					ua050: "544299068327723589",
					ua053: "544311136648954629",
					ua057: "544321824561824709",
					ua058: "544323819507024837",
					ua059: "544331528868463621",
					ua060: "544331528868463621",
					ua061: "544364395178755269",
					ua062: "544370598491456773",
					ua063: "544377697254507845",
					ua064: "544377991447184709",
					ua065: "544377991447184709",
					ua066: "544407105335986181",
					ua067: "544412786537531461",
					ua068: "544417674126428229",
					ua069: "544422956462246021",
					ua070: "544657583978318021",
					ua071: "544422956462246021",
					ua072: "544667311542372613",
					ua073: "544667311542372613",
					ua074: "544667311542372613",
					ua075: "544422956462246021",
					ua076: "544675600741173573",
					ua077: "544422956462246021",
					ua078: "544679950603520389",

					ua082: "544303833996591749",
					ua083: "544303833996591749",
					ua084: "544303833996591749",
					ua085: "544303833996591749",
					ua086: "544303833996591749",
					ua087: "544303833996591749",
					ua094: "544308591058748101",
					ua095: "544308591058748101",
					ua096: "544308591058748101",
					ua097: "544308591058748101",
					ua098: "544308591058748101",
					ua099: "544308591058748101",
				},
				ua019: null,
				ua020: null,
				ua021: null,
				ua022: null,
				ua017: null,


				ua008: null,
				ua012: null,
				ua013: null,
				ua014: null,
				ua015: null,
				ua016: null,
				ua045: null,
				ua046: null,
				ua047: null,
				ua048: null,
				ua049: null,
				ua050: null,
				ua051: null,
				ua052: null,
				ua053: [],
				ua057: [],
				ua058: [],
				ua059: [],
				ua060: [],
				ua061: [],
				ua062: [],
				ua063: [],
				ua064: [],
				ua065: null,
				ua066: [],
				ua067: [],
				ua068: [],
				ua069: [],
				ua070: [],
				ua071: [],
				ua072: [],
				ua073: [],
				ua074: [],
				ua075: [],
				ua076: [],
				ua077: [],
				ua078: [],
				ua079: [],
				ua080: [],
				ua081: [],
				ua082: null,
				ua083: null,
				ua084: null,
				ua085: null,
				ua086: null,
				ua087: null,
				ua088: null,
				ua089: null,
				ua090: null,
				ua091: null,
				ua092: null,
				ua093: null,
				ua094: null,
				ua095: null,
				ua096: null,
				ua097: null,
				ua098: null,
				ua099: null,

				ua019Options: [],
				ua020Options: [],
				ua021Options: [],
				ua022Options: [],
				ua017Options: [],
				ua079Options: [],
				ua080Options: [],
				ua008Options: [],
				ua012Options: [],
				ua013Options: [],
				ua014Options: [],
				ua015Options: [],
				ua016Options: [],
				ua045Options: [],
				ua046Options: [],
				ua047Options: [],
				ua048Options: [],
				ua049Options: [],
				ua050Options: [],
				ua051Options: [],
				ua052Options: [],
				ua053Options: [],
				ua057Options: [],
				ua058Options: [],
				ua059Options: [],
				ua060Options: [],
				ua061Options: [],
				ua062Options: [],
				ua063Options: [],
				ua064Options: [],
				ua065Options: [],
				ua066Options: [],
				ua067Options: [],
				ua068Options: [],
				ua069Options: [],
				ua070Options: [],
				ua071Options: [],
				ua072Options: [],
				ua073Options: [],
				ua074Options: [],
				ua075Options: [],
				ua076Options: [],
				ua077Options: [],
				ua078Options: [],
				ua082Options: [],
				ua083Options: [],
				ua084Options: [],
				ua085Options: [],
				ua086Options: [],
				ua087Options: [],
				ua088Options: [],
				ua089Options: [],
				ua090Options: [],
				ua091Options: [],
				ua092Options: [],
				ua093Options: [],
				ua094Options: [],
				ua095Options: [],
				ua096Options: [],
				ua097Options: [],
				ua098Options: [],
				ua099Options: [],
			};
		},

		methods: {
			async initializeOptions() {
				// 使用Object.keys代替Object.entries，因为我们只需要keys来构建属性名
				const promises = Object.keys(this.dictionaryIds).map(key => {
					// 绑定this到当前Vue实例
					const id = this.dictionaryIds[key];
					// 返回一个Promise，该Promise解析为对应的数据列表
					return getDictionaryDataSelector(id).then(res => res.data.list);
				});
				// 等待所有的Promise完成
				const optionsList = await Promise.all(promises);
				// 假设optionsList和Object.keys的顺序是一致的，更新Vue实例的数据
				optionsList.forEach((list, index) => {
					const key = Object.keys(this.dictionaryIds)[index];
					this[key + 'Options'] = list;
				});
				this.ua019 = this.ua019Options.find(item => item.enCode == this.dataForm.ua019)?.fullName;
				this.ua020 = this.ua020Options.find(item => item.enCode == this.dataForm.ua020)?.fullName;
				this.ua021 = this.ua021Options.find(item => item.enCode == this.dataForm.ua021)?.fullName;
				this.ua022 = this.ua022Options.find(item => item.enCode == this.dataForm.ua022)?.fullName;
				this.ua012 = this.ua012Options.find(item => item.enCode == this.dataForm.ua012)?.fullName;
				this.ua013 = this.ua013Options.find(item => item.enCode == this.dataForm.ua013)?.fullName;
				this.ua014 = this.ua014Options.find(item => item.enCode == this.dataForm.ua014)?.fullName;
				this.ua015 = this.ua015Options.find(item => item.enCode == this.dataForm.ua015)?.fullName;
				this.ua016 = this.ua016Options.find(item => item.enCode == this.dataForm.ua016)?.fullName;
				this.ua045 = this.ua045Options.find(item => item.enCode == this.dataForm.ua045)?.fullName;
				this.ua046 = this.ua046Options.find(item => item.enCode == this.dataForm.ua046)?.fullName;
				this.ua047 = this.ua047Options.find(item => item.enCode == this.dataForm.ua047)?.fullName;
				this.ua048 = this.ua048Options.find(item => item.enCode == this.dataForm.ua048)?.fullName;
				this.ua049 = this.ua049Options.find(item => item.enCode == this.dataForm.ua049)?.fullName;
				this.ua050 = this.ua050Options.find(item => item.enCode == this.dataForm.ua050)?.fullName;
				this.dataForm.ua053.map((el) => {
					let data = this.ua053Options.find(item => item.enCode == el)?.fullName;
					this.ua053.push(data)
				})
				this.dataForm.ua057.map((el) => {
					let data = this.ua057Options.find(item => item.enCode == el)?.fullName;
					this.ua057.push(data)
				})
				this.dataForm.ua058.map((el) => {
					let data = this.ua058Options.find(item => item.enCode == el)?.fullName;
					this.ua058.push(data)
				})
				this.dataForm.ua059.map((el) => {
					let data = this.ua059Options.find(item => item.enCode == el)?.fullName;
					this.ua059.push(data)
				})

				this.dataForm.ua060.map((el) => {
					let data = this.ua060Options.find(item => item.enCode == el)?.fullName;
					this.ua060.push(data)
				})

				this.dataForm.ua061.map((el) => {
					let data = this.ua061Options.find(item => item.enCode == el)?.fullName;
					this.ua061.push(data)
				})



				this.dataForm.ua062.map((el) => {
					let data = this.ua062Options.find(item => item.enCode == el)?.fullName;
					this.ua062.push(data)
				})

				this.dataForm.ua063.map((el) => {
					let data = this.ua063ptions.find(item => item.enCode == el)?.fullName;
					this.ua063.push(data)
				})
				this.dataForm.ua064.map((el) => {
					let data = this.ua064ptions.find(item => item.enCode == el)?.fullName;
					this.ua064.push(data)
				})

				this.ua065 = this.ua065Options.find(item => item.enCode == this.dataForm.ua065)?.fullName;
				this.dataForm.ua066.map((el) => {
					let data = this.ua066Options.find(item => item.enCode == el)?.fullName;
					this.ua066.push(data)
				})
				this.dataForm.ua067.map((el) => {
					let data = this.ua067Options.find(item => item.enCode == el)?.fullName;
					this.ua067.push(data)
				})
				this.dataForm.ua068.map((el) => {
					let data = this.ua068Options.find(item => item.enCode == el)?.fullName;
					this.ua068.push(data)
				})
				this.dataForm.ua069.map((el) => {
					let data = this.ua069Options.find(item => item.enCode == el)?.fullName;
					this.ua069.push(data)
				})
				this.dataForm.ua070.map((el) => {
					let data = this.ua070Options.find(item => item.enCode == el)?.fullName;
					this.ua070.push(data)
				})
				this.dataForm.ua071.map((el) => {
					let data = this.ua071Options.find(item => item.enCode == el)?.fullName;
					this.ua071.push(data)
				})

				this.dataForm.ua072.map((el) => {
					let data = this.ua072Options.find(item => item.enCode == el)?.fullName;
					this.ua072.push(data)
				})
				this.dataForm.ua073.map((el) => {
					let data = this.ua073Options.find(item => item.enCode == el)?.fullName;
					this.ua073.push(data)
				})
				this.dataForm.ua074.map((el) => {
					let data = this.ua074Options.find(item => item.enCode == el)?.fullName;
					this.ua074.push(data)
				})

				this.dataForm.ua075.map((el) => {
					let data = this.ua075Options.find(item => item.enCode == el)?.fullName;
					this.ua075.push(data)
				})
				this.dataForm.ua076.map((el) => {
					let data = this.ua076Options.find(item => item.enCode == el)?.fullName;
					this.ua076.push(data)
				})

				this.ua082 = this.ua082Options.find(item => item.enCode == this.dataForm.ua082)?.fullName;
				this.ua083 = this.ua083Options.find(item => item.enCode == this.dataForm.ua083)?.fullName;
				this.ua084 = this.ua084Options.find(item => item.enCode == this.dataForm.ua084)?.fullName;
				this.ua085 = this.ua085Options.find(item => item.enCode == this.dataForm.ua085)?.fullName;
				this.ua086 = this.ua086Options.find(item => item.enCode == this.dataForm.ua086)?.fullName;
				this.ua087 = this.ua087Options.find(item => item.enCode == this.dataForm.ua087)?.fullName;

				this.ua095 = this.ua095Options.find(item => item.enCode == this.dataForm.ua095)?.fullName;
				this.ua096 = this.ua096Options.find(item => item.enCode == this.dataForm.ua096)?.fullName;
				this.ua097 = this.ua097Options.find(item => item.enCode == this.dataForm.ua097)?.fullName;
				this.ua098 = this.ua098Options.find(item => item.enCode == this.dataForm.ua098)?.fullName;
				this.ua099 = this.ua099Options.find(item => item.enCode == this.dataForm.ua099)?.fullName;


			},

			init(data, id, flowFormContentJson) {
				this.setting = data;
				this.id = id;
				this.getInfo(data);
			},
			getInfo(data) {

				getCopua(data.id).then((res) => {
					if (res.code == 200) {

						this.dataForm = res.data;
						this.initializeOptions()
						if (!this.dataForm.ua008) this.dataForm.ua008 = [];
						if (!this.dataForm.ua013) this.dataForm.ua013 = [];
						if (!this.dataForm.ua050) this.dataForm.ua050 = [];
						if (!this.dataForm.ua051) this.dataForm.ua051 = [];
						if (!this.dataForm.ua052) this.dataForm.ua052 = [];
						if (!this.dataForm.ua053) this.dataForm.ua053 = [];
						if (!this.dataForm.ua059) this.dataForm.ua059 = [];
						if (!this.dataForm.ua060) this.dataForm.ua060 = [];
						if (!this.dataForm.ua061) this.dataForm.ua061 = [];
						if (!this.dataForm.ua062) this.dataForm.ua062 = [];
						if (!this.dataForm.ua063) this.dataForm.ua063 = [];
						if (!this.dataForm.ua064) this.dataForm.ua064 = [];
						if (!this.dataForm.ua066) this.dataForm.ua066 = [];
						if (!this.dataForm.ua067) this.dataForm.ua067 = [];
						if (!this.dataForm.ua068) this.dataForm.ua068 = [];
						if (!this.dataForm.ua069) this.dataForm.ua069 = [];
						if (!this.dataForm.ua070) this.dataForm.ua070 = [];
						if (!this.dataForm.ua071) this.dataForm.ua071 = [];
						if (!this.dataForm.ua072) this.dataForm.ua072 = [];
						if (!this.dataForm.ua073) this.dataForm.ua073 = [];
						if (!this.dataForm.ua074) this.dataForm.ua074 = [];
						if (!this.dataForm.ua075) this.dataForm.ua075 = [];
						if (!this.dataForm.ua076) this.dataForm.ua076 = [];
						if (!this.dataForm.ua077) this.dataForm.ua077 = [];
						if (!this.dataForm.ua078) this.dataForm.ua078 = [];
						if (!this.dataForm.ua081) this.dataForm.ua081 = [];
						if (this.dataForm.ua012 == "DX") {
							this.showLightcolor = true;
						}
						if (this.dataForm.ua012 == "JSX") {
							this.showLightcolor = true;
						}
						if (this.dataForm.ua012 == "SX") {
							this.showmatrix = true;
							this.showPointmatrix = true;
						}
						if (this.dataForm.ua047 == 1) {
							this.showFastcharging = true;
						}
						if (this.dataForm.ua047 == 2) {
							this.showScreendisplay = true;
						}
						if (this.dataForm.ua062 == "1") {
							this.showROHS = true;
						}
						if (this.dataForm.ua062 == "4") {
							this.showFireproof = true;
						}
						if (this.dataForm.ua067 == "1") {
							this.showColor = true;
							this.showUSB = true;
						}
						if (this.dataForm.ua067 == "2") {
							this.showMICRO = true;
							this.showMICROColor = true;
						}
						if (this.dataForm.ua067 == "3") {
							this.showPINS = true;
							this.showPINScolor = true;
						}
						if (this.dataForm.ua067 == "4") {
							this.showTYPEC = true;
							this.showTYPEColor = true;
						}
					}
					this.getOptions()
				});
			},

			getOptions(enCode = null, id = '539972351400493893') {
				getDictionaryDataSelector(id).then((res) => {
					return res.data.list;
				});
			},

			getUser() {
				getUserAll().then((res) => {
					this.nameList = res.data;
					this.wx022Name = res.data
						.filter((item) => this.dataForm.wx022.includes(item.id))
						.map((item) => item.realName);

					this.wx023Name = res.data
						.filter((item) => this.dataForm.wx023.includes(item.id))
						.map((item) => item.realName);

					this.wx018Name = res.data
						.filter((item) => this.dataForm.wx018.includes(item.id))
						.map((item) => item.realName);
					this.wx020Name = res.data
						.filter((item) => this.dataForm.wx020.includes(item.id))
						.map((item) => item.realName);
				});
			},
			getInterface() {
				Interface().then((res) => {
					this.tn003List = res.data;
				});
			},
			selfGetInfo() {
				Info(this.setting.id).then((res) => {
					this.dataForm = res.data;
					if (this.dataForm.fileJson) {
						this.fileList = JSON.parse(this.dataForm.fileJson);
					}
				});
			},
			selfSubmit() {
				this.dataForm.status = this.eventType === "submit" ? 0 : 1;
				if (this.eventType === "save") return this.selfHandleRequest();
				uni.showModal({
					title: "提示",
					content: "您确定要提交当前流程吗？",
					success: (res) => {
						if (res.confirm) {
							this.selfHandleRequest();
						}
					},
				});
			},
			selfHandleRequest() {
				if (!this.dataForm.id) delete this.dataForm.id;
				const formMethod = this.dataForm.id ? Update : Create;
				formMethod(this.dataForm).then((res) => {
					uni.showToast({
						title: res.msg,
						complete: () => {
							setTimeout(() => {
								uni.$emit("refresh");
								uni.navigateBack();
							}, 1500);
						},
					});
				});
			},



		},
	};
</script>